package com.youxin.busfoundation.bean.search;

import java.util.List;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.youxin.busfoundation.common.KeyValue;
import com.youxin.busfoundation.enums.EnterpriseEstablishTimeType;
import com.youxin.busfoundation.enums.EnterpriseRegisteredCapitalType;
import com.youxin.busfoundation.enums.EnterpriseScaleType;

/**
 * 搜索类型
 * @author yingde.cao
 *
 */
public class ResponseSearchTypes {
	@JsonProperty("establish_time")
	private List<KeyValue<Integer, String>> establishTime;
	
	private List<KeyValue<Integer, String>> scale;
	
	@JsonProperty("registered_capital")
	private List<KeyValue<Integer, String>> registeredCapital;

	public List<KeyValue<Integer, String>> getEstablishTime() {
		return establishTime;
	}

	public void setEstablishTime(List<KeyValue<Integer, String>> establishTime) {
		this.establishTime = establishTime;
	}

	public List<KeyValue<Integer, String>> getScale() {
		return scale;
	}

	public void setScale(List<KeyValue<Integer, String>> scale) {
		this.scale = scale;
	}

	public List<KeyValue<Integer, String>> getRegisteredCapital() {
		return registeredCapital;
	}

	public void setRegisteredCapital(List<KeyValue<Integer, String>> registeredCapital) {
		this.registeredCapital = registeredCapital;
	}

	public static ResponseSearchTypes instance(RequestSearchType bean){
		ResponseSearchTypes result=new ResponseSearchTypes();		
		result.setEstablishTime(EnterpriseEstablishTimeType.keyValues());
		result.setScale(EnterpriseScaleType.keyValues());
		result.setRegisteredCapital(EnterpriseRegisteredCapitalType.keyValues());
		return result;
	}
	
}
